<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>JSON对象创建</h1>
		<script>
			person = {
				name:'Jack',
				age :20,
				addr:{
					homeAddr:'太原小店区',
					workAddr:'太原迎泽区'
				}
			};
			alert(person.addr.homeAddr);
			alert(person['age']);
			students = [
				{name:'qzq',age:22},
				{name:'jtl',age:23}
			];
			alert(students[1].age);
		</script>
	</body>
</html>
